<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>字典数据选择</title>
<jsp:include page="../../../common/head.jsp">
	<jsp:param name="_useTree" value="true"/>
</jsp:include>
		<script>
	var levelTal=${codeKind.levelTal};
	var kindId='${codeKind.kindId}';
	var kindName='${codeKind.kindName}';
	var obj=null;
	function  clickEvent(nodeObj)
	{
		obj = nodeObj;

	}
	function selectCode()
	{
		if(obj!=null)
		{
			var str=obj.id;
			window.top.returnValue = str;
			window.top.close();
		}
		else
		{
		    alert("请点击要选择的数据节点！");
		}
	}
</script>
	</head>
	<body>
	<div id="body_div">
	<w:ShowTitle name="${codeKind.kindName}">
	<w:TitleButton funcName="选择" onClickFunction="selectCode()" urlImg="${ctx}/images/main/ok.png"/>
	</w:ShowTitle>
	<div id="body_content">
		<table width="100%">
			<tr>
				<td>
				<w:tree returnValue="codeId#codeName#isDefult" regex="#"
					displayValue="codeName" pidname="parentCodeId"
					content="${datalist}" idname="codeId" headValue="${codeKind.kindId}"
					headDisplayValue="${codeKind.kindName}"></w:tree>
				</td>
			</tr>
		</table>
	</div>
	</div>	
	</body>
</html>